#coding=utf-8
import logging
from django.conf import settings
from models import *
logger = logging.getLogger('{{ app_name }}.admin')


class DummyAdmin(admin.ModelAdmin):
    list_display = ('name', 'create_at', 'create_by', 'update_at', )
    list_filter = ('create_by', 'valid', )
    search_fields = ('name', 'content', )
    date_hierarchy = 'create_at'
    prepopulated_fields = {'slug': ('name', ), }

    class Media:
        js = (
                'js/tiny_mce/tiny_mce.js',
                'js/tiny_mce/textareas.js',
            )


admin.site.register(Dummy, DummyAdmin)
